package org.ailuoli.guard;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.tools.spring.boot.encrypt.autoconfiguration.EnableToolsEncrypt;

import static org.ailuoli.guard.domain.entity.base.MapperScanPackage.GUARD;
import static org.ailuoli.guard.domain.entity.base.MapperScanPackage.MAPPER;
import static org.ailuoli.guard.domain.entity.base.MapperScanPackage.REPOSITORY;

@MapperScan({REPOSITORY, MAPPER})
@EnableDiscoveryClient
@EnableToolsEncrypt
@SpringBootApplication(scanBasePackages = {GUARD, REPOSITORY, MAPPER})
public class GuardApplication {

    public static void main(String[] args) {
        SpringApplication.run(GuardApplication.class, args);
    }

}
